package org.jeecg.modules.online.auth.p003a;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import java.lang.invoke.SerializedLambda;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.util.oConvertUtils;
import org.jeecg.modules.online.auth.entity.OnlAuthData;
import org.jeecg.modules.online.auth.entity.OnlAuthPage;
import org.jeecg.modules.online.auth.entity.OnlAuthRelation;
import org.jeecg.modules.online.auth.p004b.AuthConstants;
import org.jeecg.modules.online.auth.service.IOnlAuthDataService;
import org.jeecg.modules.online.auth.service.IOnlAuthPageService;
import org.jeecg.modules.online.auth.service.IOnlAuthRelationService;
import org.jeecg.modules.online.auth.vo.AuthColumnVO;
import org.jeecg.modules.online.auth.vo.AuthPageVO;
import org.jeecg.modules.online.cgform.entity.OnlCgformButton;
import org.jeecg.modules.online.cgform.entity.OnlCgformField;
import org.jeecg.modules.online.cgform.entity.OnlCgformHead;
import org.jeecg.modules.online.cgform.enums.CgformConstant;
import org.jeecg.modules.online.cgform.service.IOnlCgformButtonService;
import org.jeecg.modules.online.cgform.service.IOnlCgformFieldService;
import org.jeecg.modules.online.cgform.service.IOnlCgformHeadService;
import org.jeecg.modules.online.cgform.utils.CgformUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping({"/online/cgform/api"})
@RestController("onlCgformAuthController")
/* renamed from: org.jeecg.modules.online.auth.a.a */
/* loaded from: hibernate-re-3.7.1-RC.jar:org/jeecg/modules/online/auth/a/a.class */
public class OnlCgformAuthController {

    /* renamed from: a */
    private static final Logger f96a = LoggerFactory.getLogger(OnlCgformAuthController.class);
    @Autowired
    private IOnlCgformFieldService onlCgformFieldService;
    @Autowired
    private IOnlAuthDataService onlAuthDataService;
    @Autowired
    private IOnlAuthPageService onlAuthPageService;
    @Autowired
    private IOnlCgformButtonService onlCgformButtonService;
    @Autowired
    private IOnlAuthRelationService onlAuthRelationService;
    @Autowired
    private IOnlCgformHeadService onlCgformHeadService;

    /* renamed from: a */
//    private static /* synthetic */ Object m524a(SerializedLambda serializedLambda) {
//        String implMethodName = serializedLambda.getImplMethodName();
//        boolean z = true;
//        switch (implMethodName.hashCode()) {
//            case -1998322493:
//                if (implMethodName.equals("getTableName")) {
//                    z = true;
//                    break;
//                }
//                break;
//            case -1998120590:
//                if (implMethodName.equals("getTableType")) {
//                    z = true;
//                    break;
//                }
//                break;
//            case -1719285702:
//                if (implMethodName.equals("getButtonStatus")) {
//                    z = true;
//                    break;
//                }
//                break;
//            case -1527749671:
//                if (implMethodName.equals("getCgformId")) {
//                    z = true;
//                    break;
//                }
//                break;
//            case -1453791971:
//                if (implMethodName.equals("getRuleName")) {
//                    z = true;
//                    break;
//                }
//                break;
//            case -982778162:
//                if (implMethodName.equals("getOrderNum")) {
//                    z = false;
//                    break;
//                }
//                break;
//            case -785009439:
//                if (implMethodName.equals("getAuthMode")) {
//                    z = true;
//                    break;
//                }
//                break;
//            case -271359265:
//                if (implMethodName.equals("getMainTable")) {
//                    z = true;
//                    break;
//                }
//                break;
//            case -75106384:
//                if (implMethodName.equals("getType")) {
//                    z = true;
//                    break;
//                }
//                break;
//            case 60299317:
//                if (implMethodName.equals("getButtonCode")) {
//                    z = true;
//                    break;
//                }
//                break;
//            case 60613843:
//                if (implMethodName.equals("getButtonName")) {
//                    z = true;
//                    break;
//                }
//                break;
//            case 98245393:
//                if (implMethodName.equals("getId")) {
//                    z = true;
//                    break;
//                }
//                break;
//            case 289685465:
//                if (implMethodName.equals("getAuthId")) {
//                    z = true;
//                    break;
//                }
//                break;
//            case 713008857:
//                if (implMethodName.equals("getCgformHeadId")) {
//                    z = true;
//                    break;
//                }
//                break;
//            case 770598695:
//                if (implMethodName.equals("getRoleId")) {
//                    z = true;
//                    break;
//                }
//                break;
//            case 803533544:
//                if (implMethodName.equals("getStatus")) {
//                    z = true;
//                    break;
//                }
//                break;
//            case 1884224617:
//                if (implMethodName.equals("getButtonStyle")) {
//                    z = true;
//                    break;
//                }
//                break;
//        }
//        switch (z) {
//            case false:
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/cgform/entity/OnlCgformField") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//                    return (v0) -> {
//                        return v0.getOrderNum();
//                    };
//                }
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/cgform/entity/OnlCgformField") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//                    return (v0) -> {
//                        return v0.getOrderNum();
//                    };
//                }
//                break;
//            case true:
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/auth/entity/OnlAuthData") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//                    return (v0) -> {
//                        return v0.getRuleName();
//                    };
//                }
//                break;
//            case true:
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/cgform/entity/OnlCgformButton") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//                    return (v0) -> {
//                        return v0.getCgformHeadId();
//                    };
//                }
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/cgform/entity/OnlCgformField") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//                    return (v0) -> {
//                        return v0.getCgformHeadId();
//                    };
//                }
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/cgform/entity/OnlCgformField") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//                    return (v0) -> {
//                        return v0.getCgformHeadId();
//                    };
//                }
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/cgform/entity/OnlCgformField") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//                    return (v0) -> {
//                        return v0.getCgformHeadId();
//                    };
//                }
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/cgform/entity/OnlCgformField") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//                    return (v0) -> {
//                        return v0.getCgformHeadId();
//                    };
//                }
//                break;
//            case true:
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/cgform/entity/OnlCgformButton") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//                    return (v0) -> {
//                        return v0.getButtonStyle();
//                    };
//                }
//                break;
//            case AuthConstants.f111o /* 4 */:
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/cgform/entity/OnlCgformHead") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//                    return (v0) -> {
//                        return v0.getTableName();
//                    };
//                }
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/cgform/entity/OnlCgformHead") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//                    return (v0) -> {
//                        return v0.getTableName();
//                    };
//                }
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/cgform/entity/OnlCgformHead") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//                    return (v0) -> {
//                        return v0.getTableName();
//                    };
//                }
//                break;
//            case true:
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/auth/entity/OnlAuthData") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//                    return (v0) -> {
//                        return v0.getCgformId();
//                    };
//                }
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/auth/entity/OnlAuthPage") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//                    return (v0) -> {
//                        return v0.getCgformId();
//                    };
//                }
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/auth/entity/OnlAuthPage") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//                    return (v0) -> {
//                        return v0.getCgformId();
//                    };
//                }
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/auth/entity/OnlAuthData") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//                    return (v0) -> {
//                        return v0.getCgformId();
//                    };
//                }
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/auth/entity/OnlAuthRelation") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//                    return (v0) -> {
//                        return v0.getCgformId();
//                    };
//                }
//                break;
//            case true:
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/auth/entity/OnlAuthRelation") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//                    return (v0) -> {
//                        return v0.getRoleId();
//                    };
//                }
//                break;
//            case true:
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/auth/entity/OnlAuthPage") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//                    return (v0) -> {
//                        return v0.getId();
//                    };
//                }
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/auth/entity/OnlAuthData") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//                    return (v0) -> {
//                        return v0.getId();
//                    };
//                }
//                break;
//            case true:
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/cgform/entity/OnlCgformField") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//                    return (v0) -> {
//                        return v0.getMainTable();
//                    };
//                }
//                break;
//            case true:
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/auth/entity/OnlAuthPage") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//                    return (v0) -> {
//                        return v0.getStatus();
//                    };
//                }
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/auth/entity/OnlAuthData") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//                    return (v0) -> {
//                        return v0.getStatus();
//                    };
//                }
//                break;
//            case true:
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/cgform/entity/OnlCgformButton") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//                    return (v0) -> {
//                        return v0.getButtonCode();
//                    };
//                }
//                break;
//            case true:
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/cgform/entity/OnlCgformButton") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//                    return (v0) -> {
//                        return v0.getButtonName();
//                    };
//                }
//                break;
//            case true:
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/auth/entity/OnlAuthRelation") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//                    return (v0) -> {
//                        return v0.getAuthMode();
//                    };
//                }
//                break;
//            case true:
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/auth/entity/OnlAuthPage") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//                    return (v0) -> {
//                        return v0.getType();
//                    };
//                }
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/auth/entity/OnlAuthPage") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//                    return (v0) -> {
//                        return v0.getType();
//                    };
//                }
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/auth/entity/OnlAuthRelation") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//                    return (v0) -> {
//                        return v0.getType();
//                    };
//                }
//                break;
//            case true:
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/cgform/entity/OnlCgformHead") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//                    return (v0) -> {
//                        return v0.getTableType();
//                    };
//                }
//                break;
//            case true:
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/auth/entity/OnlAuthRelation") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//                    return (v0) -> {
//                        return v0.getAuthId();
//                    };
//                }
//                break;
//            case true:
//                if (serializedLambda.getImplMethodKind() == 5 && serializedLambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && serializedLambda.getFunctionalInterfaceMethodName().equals("apply") && serializedLambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && serializedLambda.getImplClass().equals("org/jeecg/modules/online/cgform/entity/OnlCgformButton") && serializedLambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//                    return (v0) -> {
//                        return v0.getButtonStatus();
//                    };
//                }
//                break;
//        }
//        throw new IllegalArgumentException("Invalid lambda deserialization");
//    }

    @GetMapping({"/authData/{cgformId}"})
    /* renamed from: a */
    public Result<List<OnlAuthData>> m528a(@PathVariable("cgformId") String str) {
        Result<List<OnlAuthData>> result = new Result<>();
        LambdaQueryWrapper<OnlAuthData> lambdaQueryWrapper = new LambdaQueryWrapper();
        lambdaQueryWrapper.eq(OnlAuthData::getCgformId, str);
        result.setResult(this.onlAuthDataService.list(lambdaQueryWrapper));
        result.setSuccess(true);
        return result;
    }

    @PostMapping({"/authData"})
    @CacheEvict(value = {"sys:cache:online:list", "sys:cache:online:form"}, allEntries = true, beforeInvocation = true)
    /* renamed from: a */
    public Result<OnlAuthData> m522a(@RequestBody OnlAuthData onlAuthData) {
        Result<OnlAuthData> result = new Result<>();
        try {
            this.onlAuthDataService.save(onlAuthData);
            result.success("添加成功！");
        } catch (Exception e) {
            f96a.error(e.getMessage(), e);
            result.error500("操作失败");
        }
        return result;
    }

    @PutMapping({"/authData"})
    @CacheEvict(value = {"sys:cache:online:list", "sys:cache:online:form"}, allEntries = true, beforeInvocation = true)
    /* renamed from: b */
    public Result<OnlAuthData> m516b(@RequestBody OnlAuthData onlAuthData) {
        Result<OnlAuthData> result = new Result<>();
        this.onlAuthDataService.updateById(onlAuthData);
        result.success("编辑成功！");
        return result;
    }

    @DeleteMapping({"/authData/{id}"})
    @CacheEvict(value = {"sys:cache:online:list", "sys:cache:online:form"}, allEntries = true, beforeInvocation = true)
    /* renamed from: b */
    public Result<?> m519b(@PathVariable("id") String str) {
        this.onlAuthDataService.deleteOne(str);
        return Result.ok("删除成功!");
    }

    @PostMapping({"/createAiTestAuthData"})
    @CacheEvict(value = {"sys:cache:online:list", "sys:cache:online:form"}, allEntries = true, beforeInvocation = true)
    /* renamed from: a */
    public Result<?> m529a(@RequestBody JSONObject jSONObject) {
        Result<?> result = new Result<>();
        try {
            this.onlAuthDataService.createAiTestAuthData(jSONObject);
            result.success("添加成功！");
        } catch (Exception e) {
            f96a.error(e.getMessage(), e);
            result.error500("操作失败");
        }
        return result;
    }

    @GetMapping({"/authButton/{cgformId}"})
    /* renamed from: c */
    public Result<Map<String, Object>> m514c(@PathVariable("cgformId") String str) {
        Result<Map<String, Object>> result = new Result<>();
        LambdaQueryWrapper<OnlCgformButton> var3 = new LambdaQueryWrapper();
		var3.eq(OnlCgformButton::getCgformHeadId, str)
		.eq(OnlCgformButton::getButtonStatus, "1");
		var3.select(OnlCgformButton::getButtonCode, OnlCgformButton::getButtonName,OnlCgformButton::getButtonStyle);
		List list = this.onlCgformButtonService.list(var3);
        
		
		LambdaQueryWrapper<OnlAuthPage> var5 = new LambdaQueryWrapper();
		var5.eq(OnlAuthPage::getCgformId, str).eq(OnlAuthPage::getType, 2);
		List list2 = this.onlAuthPageService.list(var5);
		
        HashMap hashMap = new HashMap(5);
        OnlCgformHead onlCgformHead = (OnlCgformHead) this.onlCgformHeadService.getById(str);
        if (CgformConstant.f368c.equals(onlCgformHead.getTableType())) {
        	LambdaQueryWrapper<OnlCgformField> lambdaQueryWrapper = new LambdaQueryWrapper();
            lambdaQueryWrapper.eq(OnlCgformField::getCgformHeadId, str);
            lambdaQueryWrapper.isNotNull(OnlCgformField::getMainTable);
            List<OnlCgformField> list3 = this.onlCgformFieldService.list(lambdaQueryWrapper);
            if (oConvertUtils.listIsNotEmpty(list3)) {
            	List var12 = list3.stream().map(OnlCgformField::getMainTable).collect(Collectors.toList());
                List list4 = this.onlCgformHeadService.list(Wrappers.lambdaQuery(OnlCgformHead.class).in(OnlCgformHead::getTableName, var12).eq(OnlCgformHead::getTableName, var12));
                if (oConvertUtils.listIsNotEmpty(list4)) {
                    hashMap.put("mainThemeTemplate", ((OnlCgformHead) list4.get(0)).getThemeTemplate());
                    hashMap.put("mainRelationType", onlCgformHead.getRelationType());
                }
            }
        }
        hashMap.put("buttonList", list);
        hashMap.put("authList", list2);
        result.setResult(hashMap);
        result.setSuccess(true);
        return result;
    }

    @PostMapping({"/authButton"})
    @CacheEvict(value = {"sys:cache:online:list", "sys:cache:online:form"}, allEntries = true, beforeInvocation = true)
    /* renamed from: a */
    public Result<OnlAuthPage> m521a(@RequestBody OnlAuthPage onlAuthPage) {
        OnlAuthPage onlAuthPage2;
        Result<OnlAuthPage> result = new Result<>();
        try {
            String id = onlAuthPage.getId();
            boolean z = false;
            if (oConvertUtils.isNotEmpty(id) && (onlAuthPage2 = (OnlAuthPage) this.onlAuthPageService.getById(id)) != null) {
                z = true;
                onlAuthPage2.setStatus(1);
                this.onlAuthPageService.updateById(onlAuthPage2);
            }
            if (!z) {
                onlAuthPage.setStatus(1);
                this.onlAuthPageService.save(onlAuthPage);
            }
            result.setResult(onlAuthPage);
            result.success("操作成功！");
        } catch (Exception e) {
            f96a.error(e.getMessage(), e);
            result.error500("操作失败");
        }
        return result;
    }

    @PutMapping({"/authButton/{id}"})
    @CacheEvict(value = {"sys:cache:online:list", "sys:cache:online:form"}, allEntries = true, beforeInvocation = true)
    /* renamed from: d */
    public Result<?> m512d(@PathVariable("id") String str) {
        LambdaUpdateWrapper<OnlAuthPage> var2 = new UpdateWrapper().lambda();
		var2.eq(OnlAuthPage::getId, str).set(OnlAuthPage::getStatus, 0);
		this.onlAuthPageService.update(var2);
        return Result.ok("操作成功");
    }

    @GetMapping({"/authColumn/{cgformId}"})
    /* renamed from: e */
    public Result<List<AuthColumnVO>> m511e(@PathVariable("cgformId") String str) {
        Result<List<AuthColumnVO>> result = new Result<>();
        LambdaQueryWrapper<OnlCgformField> lambdaQueryWrapper = new LambdaQueryWrapper();
        lambdaQueryWrapper.eq(OnlCgformField::getCgformHeadId, str);
        lambdaQueryWrapper.orderByAsc(OnlCgformField::getOrderNum);
        List<OnlCgformField> list = this.onlCgformFieldService.list(lambdaQueryWrapper);
        if (list == null || list.size() == 0) {
            Result.error("未找到对应字段信息!");
        }
        
        LambdaQueryWrapper<OnlAuthPage> var5 =  new LambdaQueryWrapper();
		var5.eq(OnlAuthPage::getCgformId, str).eq(OnlAuthPage::getType, 1);
		List list2 = this.onlAuthPageService.list(var5);
        ArrayList arrayList = new ArrayList();
        ArrayList arrayList2 = new ArrayList();
        for (OnlCgformField onlCgformField : list) {
            AuthColumnVO authColumnVO = new AuthColumnVO(onlCgformField);
            Integer num = 0;
            boolean z = false;
            boolean z2 = false;
            boolean z3 = false;
            for (int i = 0; i < list2.size(); i++) {
                OnlAuthPage onlAuthPage = (OnlAuthPage) list2.get(i);
                if (onlCgformField.getDbFieldName().equals(onlAuthPage.getCode())) {
                    num = onlAuthPage.getStatus();
                    if (onlAuthPage.getPage().intValue() == 3 && onlAuthPage.getControl().intValue() == 5) {
                        z = true;
                    }
                    if (onlAuthPage.getPage().intValue() == 5) {
                        if (onlAuthPage.getControl().intValue() == 5) {
                            z2 = true;
                        } else if (onlAuthPage.getControl().intValue() == 3) {
                            z3 = true;
                        }
                    }
                }
            }
            authColumnVO.setStatus(num);
            authColumnVO.setListShow(z);
            authColumnVO.setFormShow(z2);
            authColumnVO.setFormEditable(z3);
            if (num.intValue() == 1) {
                arrayList2.add(authColumnVO);
            } else {
                arrayList.add(authColumnVO);
            }
        }
        arrayList2.addAll(arrayList);
        result.setResult(arrayList2);
        Result.ok("加载字段权限数据完成");
        return result;
    }

    @PutMapping({"/authColumn"})
    @CacheEvict(value = {"sys:cache:online:list", "sys:cache:online:form"}, allEntries = true, beforeInvocation = true)
    /* renamed from: a */
    public Result<?> m520a(@RequestBody AuthColumnVO authColumnVO) {
        Result<?> result = new Result<>();
        try {
            if (authColumnVO.getStatus().intValue() == 1) {
                this.onlAuthPageService.enableAuthColumn(authColumnVO);
            } else {
                this.onlAuthPageService.disableAuthColumn(authColumnVO);
            }
            result.success("操作成功！");
        } catch (Exception e) {
            f96a.error(e.getMessage(), e);
            result.error500("操作失败");
        }
        return result;
    }

    @PutMapping({"/authColumn/batch"})
    @CacheEvict(value = {"sys:cache:online:list", "sys:cache:online:form"}, allEntries = true, beforeInvocation = true)
    /* renamed from: a */
    public Result<?> m523a(@RequestBody List<AuthColumnVO> list) {
        Result<?> result = new Result<>();
        try {
            this.onlAuthPageService.updateAuthColumnBatch(list);
            result.success("操作成功！");
        } catch (Exception e) {
            f96a.error(e.getMessage(), e);
            result.error500("操作失败");
        }
        return result;
    }

    @PostMapping({"/authColumn"})
    @CacheEvict(value = {"sys:cache:online:list", "sys:cache:online:form"}, allEntries = true, beforeInvocation = true)
    /* renamed from: b */
    public Result<?> m515b(@RequestBody AuthColumnVO authColumnVO) {
        Result<?> result = new Result<>();
        try {
            this.onlAuthPageService.switchAuthColumn(authColumnVO);
            result.success("操作成功！");
        } catch (Exception e) {
            f96a.error(e.getMessage(), e);
            result.error500("操作失败");
        }
        return result;
    }

    @PostMapping({"/authColumn/batch"})
    @CacheEvict(value = {"sys:cache:online:list", "sys:cache:online:form"}, allEntries = true, beforeInvocation = true)
    /* renamed from: b */
    public Result<?> m517b(@RequestBody List<AuthColumnVO> list) {
        Result<?> result = new Result<>();
        try {
            this.onlAuthPageService.switchAuthColumnBatch(list);
            result.success("操作成功！");
        } catch (Exception e) {
            f96a.error(e.getMessage(), e);
            result.error500("操作失败");
        }
        return result;
    }

    @GetMapping({"/authPage/{cgformId}/{type}"})
    /* renamed from: a */
    public Result<List<AuthPageVO>> m527a(@PathVariable("cgformId") String str, @PathVariable("type") Integer num) {
        Result<List<AuthPageVO>> result = new Result<>();
        result.setResult(this.onlAuthPageService.queryAuthByFormId(str, num.intValue()));
        result.setSuccess(true);
        return result;
    }

    @GetMapping({"/validAuthData/{cgformId}"})
    /* renamed from: f */
    public Result<List<OnlAuthData>> m510f(@PathVariable("cgformId") String str) {
        Result<List<OnlAuthData>> result = new Result<>();
        
        LambdaQueryWrapper<OnlAuthData> var3 =  new LambdaQueryWrapper();
		var3.eq(OnlAuthData::getCgformId, str).eq(OnlAuthData::getStatus, 1)
				.select(OnlAuthData::getId, OnlAuthData::getRuleName);
        result.setResult(this.onlAuthDataService.list(var3));
        result.setSuccess(true);
        return result;
    }

    @GetMapping({"/roleAuth"})
    /* renamed from: a */
    public Result<List<OnlAuthRelation>> m525a(@RequestParam("roleId") String str, @RequestParam("cgformId") String str2, @RequestParam("type") Integer num, @RequestParam("authMode") String str3) {
        Result<List<OnlAuthRelation>> result = new Result<>();
        
        LambdaQueryWrapper<OnlAuthRelation> var6 = new LambdaQueryWrapper();
		var6.eq(OnlAuthRelation::getRoleId, str);
		var6.eq(OnlAuthRelation::getCgformId, str2);
		var6.eq(OnlAuthRelation::getType, num);
		var6.eq(OnlAuthRelation::getAuthMode, str3);
		var6.select(OnlAuthRelation::getAuthId);
		result.setResult( this.onlAuthRelationService.list(var6));
        result.setSuccess(true);
        return result;
    }

    @PostMapping({"/roleColumnAuth/{roleId}/{cgformId}"})
    @CacheEvict(value = {"sys:cache:online:list", "sys:cache:online:form"}, allEntries = true, beforeInvocation = true)
    /* renamed from: a */
    public Result<?> m526a(@PathVariable("roleId") String str, @PathVariable("cgformId") String str2, @RequestBody JSONObject jSONObject) {
        Result<?> result = new Result<>();
        JSONArray jSONArray = jSONObject.getJSONArray("authId");
        this.onlAuthRelationService.saveRoleAuth(str, str2, 1, jSONObject.getString("authMode"), jSONArray.toJavaList(String.class));
        result.setSuccess(true);
        return result;
    }

    @PostMapping({"/roleButtonAuth/{roleId}/{cgformId}"})
    @CacheEvict(value = {"sys:cache:online:list", "sys:cache:online:form"}, allEntries = true, beforeInvocation = true)
    /* renamed from: b */
    public Result<?> m518b(@PathVariable("roleId") String str, @PathVariable("cgformId") String str2, @RequestBody JSONObject jSONObject) {
        Result<?> result = new Result<>();
        JSONArray jSONArray = jSONObject.getJSONArray("authId");
        this.onlAuthRelationService.saveRoleAuth(str, str2, 2, jSONObject.getString("authMode"), jSONArray.toJavaList(String.class));
        result.setSuccess(true);
        return result;
    }

    @PostMapping({"/roleDataAuth/{roleId}/{cgformId}"})
    @CacheEvict(value = {"sys:cache:online:list", "sys:cache:online:form"}, allEntries = true, beforeInvocation = true)
    /* renamed from: c */
    public Result<?> m513c(@PathVariable("roleId") String str, @PathVariable("cgformId") String str2, @RequestBody JSONObject jSONObject) {
        Result<?> result = new Result<>();
        JSONArray jSONArray = jSONObject.getJSONArray("authId");
        this.onlAuthRelationService.saveRoleAuth(str, str2, 3, jSONObject.getString("authMode"), jSONArray.toJavaList(String.class));
        result.setSuccess(true);
        return result;
    }

    @GetMapping({"/getAuthColumn/{desformCode}"})
    /* renamed from: g */
    public Result<List<AuthColumnVO>> m509g(@PathVariable("desformCode") String str) {
        OnlCgformHead onlCgformHead = this.onlCgformHeadService.getOne(new LambdaQueryWrapper<OnlCgformHead>().eq(OnlCgformHead::getTableName, str));
        if (onlCgformHead == null) {
            return Result.error("未找到对应字段信息!");
        }
        
        LambdaQueryWrapper<OnlCgformField> lambdaQueryWrapper = new LambdaQueryWrapper();
        lambdaQueryWrapper.eq(OnlCgformField::getCgformHeadId, onlCgformHead.getId());
        lambdaQueryWrapper.orderByAsc(OnlCgformField::getOrderNum);
        List<OnlCgformField> list = this.onlCgformFieldService.list(lambdaQueryWrapper);
        if (list == null || list.isEmpty()) {
            return Result.error("未找到对应字段信息!");
        }
        ArrayList arrayList = new ArrayList();
        for (OnlCgformField onlCgformField : list) {
            if (!CgformUtil.m311i(onlCgformField.getDbFieldName()) && !CgformUtil.f236H.equalsIgnoreCase(onlCgformField.getDbFieldName())) {
                AuthColumnVO authColumnVO = new AuthColumnVO(onlCgformField);
                authColumnVO.setTableName(onlCgformHead.getTableName());
                authColumnVO.setTableNameTxt(onlCgformHead.getTableTxt());
                authColumnVO.setIsMain(true);
                arrayList.add(authColumnVO);
            }
        }
        if (oConvertUtils.isNotEmpty(onlCgformHead.getSubTableStr())) {
            for (String str2 : onlCgformHead.getSubTableStr().split(CgformUtil.f233E)) {
                OnlCgformHead onlCgformHead2 = this.onlCgformHeadService.getOne(new LambdaQueryWrapper<OnlCgformHead>().eq(OnlCgformHead::getTableName, str2));
                if (onlCgformHead2 != null) {
                	LambdaQueryWrapper<OnlCgformField> query11 = new LambdaQueryWrapper();
                	query11.eq(OnlCgformField::getCgformHeadId, onlCgformHead2.getId());
                    List<OnlCgformField> list2 = this.onlCgformFieldService.list(query11);
                    if (list2 != null) {
                        for (OnlCgformField onlCgformField2 : list2) {
                            if (!CgformUtil.m311i(onlCgformField2.getDbFieldName()) && (!oConvertUtils.isNotEmpty(onlCgformField2.getMainTable()) || !oConvertUtils.isNotEmpty(onlCgformField2.getMainField()))) {
                                if (!CgformUtil.f236H.equalsIgnoreCase(onlCgformField2.getDbFieldName())) {
                                    AuthColumnVO authColumnVO2 = new AuthColumnVO(onlCgformField2);
                                    authColumnVO2.setTableName(onlCgformHead2.getTableName());
                                    authColumnVO2.setTableNameTxt(onlCgformHead2.getTableTxt());
                                    authColumnVO2.setIsMain(false);
                                    arrayList.add(authColumnVO2);
                                }
                            }
                        }
                    }
                }
            }
        }
        return Result.OK(arrayList);
    }
}
